package agents.interaction;

import game.constants.ReferenceAgent;
import interfaces.impl.HumanInteraction;
import objects.WorldObject;
import universe.Universe;
import actions.ActionDropObject;
import extra.ObjectId;


public class InteractionDropObject extends HumanInteraction{
	
	ObjectId objectIdToDrop;

	@Override
	public void initializeParametersList() {
		objectIdToDrop= new ObjectId();
		addParameter(objectIdToDrop);
		
	}

	@Override
	public void initializeActionList() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void initializeSpecialFeatures() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void initializeName() {
		name="Drop Object";
		
	}

	@Override
	public void initializeId() {
		id=ReferenceAgent.AGENT_HUMAN_INTERACTION_DROP_OBJECT;
		
	}

	@Override
	public void updateChild(WorldObject object, Universe universe, double time) {
		WorldObject objToDrop = universe.getObject(objectIdToDrop.getObjectId());
		ActionDropObject actionDrop = new ActionDropObject();
		actionDrop.setSource(object);
		actionDrop.setTarget(objToDrop);
		universe.setAction(actionDrop);
		isActive=false;
		
	}
	
	

}
